\contentsline {chapter}{\numberline {1}Introduction}{5}
\contentsline {section}{\numberline {1.1}IF and combat}{5}
\contentsline {section}{\numberline {1.2}Design principles}{7}
\contentsline {section}{\numberline {1.3}Some features}{8}
\contentsline {section}{\numberline {1.4}How to use this document}{9}
\contentsline {section}{\numberline {1.5}License}{9}
\contentsline {section}{\numberline {1.6}Thanks}{10}
\contentsline {section}{\numberline {1.7}Version history}{10}
\contentsline {chapter}{\numberline {2}ATTACK: detailed overview}{13}
\contentsline {section}{\numberline {2.1}Preliminaries}{13}
\contentsline {subsection}{\numberline {2.1.1}Inclusions and use statements}{13}
\contentsline {subsection}{\numberline {2.1.2}Numbers on and off}{13}
\contentsline {subsection}{\numberline {2.1.3}Some say-phrases}{14}
\contentsline {subsection}{\numberline {2.1.4}Acting fast}{14}
\contentsline {section}{\numberline {2.2}The basic statistics of actors}{15}
\contentsline {subsection}{\numberline {2.2.1}Health}{15}
\contentsline {subsection}{\numberline {2.2.2}Killed / alive}{16}
\contentsline {subsection}{\numberline {2.2.3}Melee and defence}{17}
\contentsline {subsection}{\numberline {2.2.4}Factions}{17}
\contentsline {section}{\numberline {2.3}The combat round}{18}
\contentsline {subsection}{\numberline {2.3.1}Combat states}{18}
\contentsline {subsection}{\numberline {2.3.2}Initiative}{19}
\contentsline {subsection}{\numberline {2.3.3}Setting up the combat order}{20}
\contentsline {subsection}{\numberline {2.3.4}Main combat round routines}{20}
\contentsline {subsection}{\numberline {2.3.5}Handling the combat round}{22}
\contentsline {subsection}{\numberline {2.3.6}Having a reaction}{22}
\contentsline {subsection}{\numberline {2.3.7}Running the combat}{23}
\contentsline {section}{\numberline {2.4}Striking a blow}{23}
\contentsline {subsection}{\numberline {2.4.1}A few preliminaries}{24}
\contentsline {subsection}{\numberline {2.4.2}The big routine}{24}
\contentsline {subsection}{\numberline {2.4.3}The seventeen entry points in detail}{27}
\contentsline {subsubsection}{Entry point 1: does attacking begin?}{27}
\contentsline {subsubsection}{Entry point 2: preliminary results of attacking}{27}
\contentsline {subsubsection}{Entry point 3: basic attack roll}{27}
\contentsline {subsubsection}{Entry point 4: apply the attack modifiers}{28}
\contentsline {subsubsection}{Entry point 5: calculate results of the attack roll}{28}
\contentsline {subsubsection}{Entry point 6: show results of the attack roll}{29}
\contentsline {subsubsection}{Entry point 7: did the attack hit?}{29}
\contentsline {subsubsection}{Entry point 8: immediate results of hitting}{29}
\contentsline {subsubsection}{Entry point 9: rolling the die for damage}{29}
\contentsline {subsubsection}{Entry point 10: modifying the damage}{30}
\contentsline {subsubsection}{Entry point 11: calculating the final damage}{30}
\contentsline {subsubsection}{Entry point 12: showing the damage}{31}
\contentsline {subsubsection}{Entry point 13: pre-prose-generation effects}{31}
\contentsline {subsubsection}{Entry point 14: reporting the results of the blow}{31}
\contentsline {subsubsection}{Entry point 15: aftereffects}{32}
\contentsline {subsubsection}{Entry point 16: remove temporary circumstances}{33}
\contentsline {subsubsection}{Entry point 17: final report}{33}
\contentsline {subsection}{\numberline {2.4.4}Which entry points should I use?}{34}
\contentsline {section}{\numberline {2.5}Standard combat actions}{34}
\contentsline {subsection}{\numberline {2.5.1}Waiting}{34}
\contentsline {subsection}{\numberline {2.5.2}Attacking}{35}
\contentsline {subsection}{\numberline {2.5.3}Concentrating}{36}
\contentsline {subsection}{\numberline {2.5.4}Parrying}{37}
\contentsline {subsection}{\numberline {2.5.5}Dodging}{38}
\contentsline {section}{\numberline {2.6}Artificial Intelligence}{39}
\contentsline {subsection}{\numberline {2.6.1}Preliminaries}{39}
\contentsline {subsection}{\numberline {2.6.2}Standard attacker AI}{40}
\contentsline {subsection}{\numberline {2.6.3}Three steps: person, weapon, action}{40}
\contentsline {subsection}{\numberline {2.6.4}First step: choosing a person}{41}
\contentsline {subsection}{\numberline {2.6.5}Second step: choosing a weapon}{43}
\contentsline {subsection}{\numberline {2.6.6}Third step: choosing an action}{44}
\contentsline {subsection}{\numberline {2.6.7}Chance to win rules}{47}
\contentsline {section}{\numberline {2.7}Weapons}{48}
\contentsline {subsection}{\numberline {2.7.1}The weapon kind}{48}
\contentsline {subsection}{\numberline {2.7.2}Readying}{49}
\contentsline {subsection}{\numberline {2.7.3}Natural weapons}{50}
\contentsline {section}{\numberline {2.8}Plug-ins}{50}
\contentsline {subsection}{\numberline {2.8.1}Reloadable weapons}{51}
\contentsline {subsection}{\numberline {2.8.2}Tension}{55}
\contentsline {chapter}{\numberline {3}Examples and recipes}{57}
\contentsline {section}{\numberline {3.1}Worked example: a simple dungeon}{57}
\contentsline {subsection}{\numberline {3.1.1}First blood}{57}
\contentsline {subsection}{\numberline {3.1.2}Custom weapons}{57}
\contentsline {subsection}{\numberline {3.1.3}Simple prose}{58}
\contentsline {subsection}{\numberline {3.1.4}Killing the player}{61}
\contentsline {subsection}{\numberline {3.1.5}Movement and retreat}{62}
\contentsline {subsection}{\numberline {3.1.6}Simple AI tweaks}{65}
\contentsline {subsection}{\numberline {3.1.7}Special ability: shout}{66}
\contentsline {subsection}{\numberline {3.1.8}Healing the player}{67}
\contentsline {subsection}{\numberline {3.1.9}A blade in the dark}{70}
\contentsline {subsection}{\numberline {3.1.10}Monster with special abilities}{75}
\contentsline {subsection}{\numberline {3.1.11}Victory!}{78}
\contentsline {subsection}{\numberline {3.1.12}Test commands}{79}
\contentsline {subsection}{\numberline {3.1.13}Save and Undo}{80}
\contentsline {section}{\numberline {3.2}Further recipes}{81}
